import { App } from 'vue'
import { Bus } from '/@/hooks/useBus'
import { scrollScreen } from './scrollScreen'
/**
 * @description 全局挂在页面滚动指令
 * @param { App } app app实例
 */
export function setupScrollScreen(app: App): void {
  app.directive('scrollScreen', scrollScreen)
}
/**
 * @description 全局挂载bus
 * @param { App } app app实例
 * @returns { void }
 */
export function setupBus(app: App): void {
  app.config.globalProperties.$bus = new Bus()
}
